#
# Copyright (C) 1991, Shinji Kono, Sony Computer Science Laboratory, Inc.
#                                  The University, Newcastle upton Tyne
#
# Everyone is permitted to copy and distribute verbatim copies
# of this license, but changing it is not allowed.  You can also
# use this wording to make the terms for other programs.
#
# send your comments to kono@csl.sony.co.jp
#

.SUFFIXES: .pl .ql
.SILENT:
OBJ = tokio.ql
WORK = .tmpl .tmpc .tmpa

all:
	rm -f $(WORK)
	touch $(WORK)
	make  $(OBJ)
	echo '?-load(['$(OBJ)']).' | \
		sed -e 's/\.ql//g' -e 's/ *$$//' -e 's/ /,/g' > .tmpa

.pl.ql:
	echo '?-fcompile('$*').' >> .tmpc
	echo '?-load('$*').' >> .tmpl

clean:
	rm -f *.ql $(WORK)

pack:
	tar cvf -  read.me \
	`echo $(OBJ) | sed -e 's/\.ql/\.pl/g' ` \
	makefile init | compress |\
	uuencode tokio.tar.Z > tokio.tar.Z.uu
